/**
 * 
 */
package com.skood.common.model;

import java.io.Serializable;

/**
 * @author keege
 * @date 2013-11-9
 * 所有查询对象继承该类
 */
public class SearchModel<T> implements Serializable {
	private static final long serialVersionUID = -2977062151995688695L;
	
	//page=2&start=20&limit=20分页参数
	private Long page;//页码，既第几页
	private Long start;//开始条数
	private Long limit;//每页条数
	private String sort;//页面传入的排序规则searchModel.sort:[{"property":"name","direction":"DESC"},{"property":"nickName","direction":"ASC"}]
	private Object sorters;
	private String sorterData;
	private T entityBean;
	
	public Long getPage() {
		return page;
	}
	public void setPage(Long page) {
		this.page = page;
	}
	public Long getStart() {
		return start;
	}
	public void setStart(Long start) {
		this.start = start;
	}
	public Long getLimit() {
		return limit;
	}
	public void setLimit(Long limit) {
		this.limit = limit;
	}
	public String getSorterData() {
		return sorterData;
	}
	public void setSorterData(String sorterData) {
		this.sorterData = sorterData;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public Object getSorters() {
		return sorters;
	}
	public void setSorters(Object sorters) {
		this.sorters = sorters;
	}
	public T getEntityBean() {
		return entityBean;
	}
	public void setEntityBean(T entityBean) {
		this.entityBean = entityBean;
	}
	
}
